<?php
/**
 * Class Model untuk Spesifikasi Genset
 * 
 * @category Application
 * @package Application_Model
 * @filesource Application/Model/SpekGenset.php
 * @author Bayu Santoso
 * @copyright 2012 Gede Technology IT Consulting
 */

class Application_Model_SpekGenset extends Zend_Db_Table_Abstract
{
    protected $_name = 'tabel_spek_engine';
    
    public function spekGensetBaru($data)
    {
        $id = $this->insert($data);
        return $id;
    }
    
    /**
     *
     * @param type $data
     * @param type $id 
     */
    public function spekGensetUpdate($data, $id)
    {
        $this->update($data, 'id_engine_genset = '.(int)$id);
    }
    
    public function spekGensetDelete($id)
    {
        $this->delete('id_engine_genset = '.(int)$id);
    }
}

